package cn.sz.dzy.shardingjdbcdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @version : v1.0.0
 * @program: sharding-jdbc-demo
 * @description:
 * @author: DingZhenYun
 * @create: 2025-04-13 17:29
 **/

@TableName("t_user")//逻辑表
@Data
public class User {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String uname;
}

